const routers = [
    {
    path: '/',
    meta: {
        title: '首页'
    },
    component: (resolve) => require(['./views/index.vue'], resolve)
    },
    {
        path: '/menu',
        meta: {
            title: '目录管理'
        },
        component: (resolve) => require(['./views/menu.vue'], resolve)
    },
    {
        path: '/config',
        meta: {
            title: '设置'
        },
        component: (resolve) => require(['./views/config.vue'], resolve)
    },
    {
        path: '/page',
        meta: {
            title: '文章管理'
        },
        component: (resolve) => require(['./views/page.vue'], resolve)
    },
    {
        path: '/pageEdit',
        meta: {
            title: '文章编辑'
        },
        component: (resolve) => require(['./views/pageEdit.vue'], resolve)
    },
    {
        path: '/goods',
        meta: {
            title: '商品管理'
        },
        component: (resolve) => require(['./views/goods.vue'], resolve)
    },
    {
        path: '/goodsEdit',
        meta: {
            title: '商品编辑'
        },
        component: (resolve) => require(['./views/goodsEdit.vue'], resolve)
    },
    {
        path: '/ad',
        meta: {
            title: '广告中心'
        },
        component: (resolve) => require(['./views/ad.vue'], resolve)
    },
];
export default routers;